﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Com.Toook.AutoDownloadHtml.DownloadHtml.ParseObj
{
    public class Step
    {
        /// <summary>
        /// 是否返回Elements
        /// </summary>
        public bool IsReturnElements
        {
            get
            {
                return getBy != ByType.Id;
            }            
        }

        private ByType getBy;
        /// <summary>
        /// 根据指定的类型获取元素
        /// </summary>
        public ByType GetBy
        {
            get
            {
                return getBy;
            }
            set
            {
                getBy = value;
            }
        }

        private string name;
        /// <summary>
        /// 属性名
        /// </summary>
        public string AttrName
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }
        private string val;
        /// <summary>
        /// 属性值
        /// </summary>
        public string AttrValue
        {
            get
            {
                return val;
            }
            set
            {
                val = value;
            }
        }
        
    }
}
